import request from '@/utils/requestOverTime'
// import request from '@/utils/request'

// const url = process.env.VUE_APP_MES
// 搜索按钮,获取对应的匹配数据用于展示
export function searchWorkers(data) {
  return request({
    data,
    url: `/back/user/userPage`,
    method: 'post'
  })
}

// 删除用户信息函数
export function deleteWorkers(data) {
  return request({
    data,
    url: `/back/user/delUser`,
    method: 'post'
  })
}

// 后台管理员下载模板用户EXcel模板
export function getExcelExample(data) {
  return request({
    data,
    responseType: 'blob',
    url: '/back/user/getExcelExample',
    method: 'get'
  })
}

